package com.jiuyuan.service;

import com.jiuyuan.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiuyuan.entity.Role;
import com.jiuyuan.entity.vo.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiuyuan
 * @since 2023-02-15
 */
public interface IAdminService extends IService<Admin> {

    Admin getAdminByUsername(String name);

    List<Role> getRolesByAdminId(Integer id);

    RespBean allList(String keyBoard);

    RespBean updatePass(Integer adminId, String oldPass, String pass);
}
